﻿using System.Collections;
using System.Data.SqlClient;
using com.fukefu.sql;

namespace com.fukefu.tools
{
    public class ProductInformation
    {
        Hashtable hs = new Hashtable();
        public ProductInformation()
        {
            Init();
        }
        //初始化
        private void Init()
        {
            SqlServerOperate sql = new SqlServerOperate();
            SqlDataReader re = sql.Query("select * from [_site_配置]");
            while (re.Read())
            {
                hs.Add(re["k"], re["v"]);
            }
            re.Close();
            sql.Close();
        }
        //获取配置文件
        public string Get(string k)
        {
            if (hs.Contains(k))
            {
                return hs[k].ToString();
            }
            return "";
        }
    }
}
